<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    {{seo}}
    <title>{{$title}}</title>
    <meta name="keyword" content="{{$keyword}}" />
    <meta name="description" content="{{$describe}}" />
    {{/seo}}
    <link rel="stylesheet" href="{{$static_path}}/static/common/css/reset.css">
    <link rel="stylesheet" href="{{$static_path}}/static/common/css/swiper_2.7.css">
    <link rel="stylesheet" href="{{$static_path}}/static/common/css/header.css">
    <link rel="stylesheet" href="{{$static_path}}/static/common/css/footer.css">
    <link rel="stylesheet" href="{{$static_path}}/static/css/investors/iconfont/iconfont.css">
    <link rel="stylesheet" href="{{$static_path}}/static/css/investors/list_investors_space.css">
    <link rel="stylesheet" href="{{$static_path}}/static/common/css/common.css">
    <script src="{{$static_path}}/static/common/js/jquery-1.11.3.js"></script>
</head>

<body>
    <!-- 头部部分 -->
    {{include file="header.tpl"}}
    <!-- 内容区域 -->
    <div class="dh-main">
        <div class="zj-banner"></div>
        <div class="main-content">
            <div class="main-left">
                <div class="dh-top1">
                    <p class="h-top">投资者之家</p>
                </div>
                <ul class="dh-list">
                    {{navigation parentid="46"}}
                        {{foreach $list as $k => $v}}
                            <li> <a href="{{$v['url']}}" {{if $get.category|in_array:$v['allchildurl']}}class="dh-acitve"{{/if}}>{{$v['name']}}</a></li>
                        {{/foreach}}
                    {{/navigation}}
                </ul>
            </div>
            <div class="main-right">
                {{crumbs url=$smarty.get.category}}
                <div class="right-txt-box">
                    <h1>{{$title}}</h1>
                    <div class="wz">
                        <span class="wz-span">您的位置：<a href="/">首页</a> > {{$crumbs}} </span>
                    </div>
                </div>
                {{/crumbs}}
                <!-- 右侧的内容 -->
                <div class="box-txt clearfix">
                    <div class="content-wrap" style="width: 985px">
                        <form id="space">
                        <input type="hidden" name="id" value="3">
                        <div class="message-wrapper" style="width: 924px">
                            <textarea placeholder="写下你想分享的话..." name="works-content" maxlength="200"></textarea>
                            <span id="uploadSwitch" class="btn-upload iconfont icon-image"></span>
                            <input type="hidden" name="pic" id="dynamic-id" style="border: red 1px solid">
                            <input type="button" class="submit" id="subfivespaceform" value="发送">
                            <div id="picUpload" class="picUpload-container">
                                <div class="pic_upload_active">
                                    <div class="upload_btn clearfix">
                                        <input class="fileinput" type="file" id="choose"
                                            accept="image/gif,image/jpeg,image/jpg,image/png" style="width:0;height:0"
                                            multiple="">
                                        <ul class="img-list"></ul>
                                        <div class="filebox" id="upload"></div>
                                        <div class="pic-list"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="tc_box" style="display: none;"></div>
                        </div>
                        </form>
                        <!-- <div class="zs-tabs">
                            <p class="zs-acitve"><span class="iconfont icon-liebiao"></span>全部</p>
                            <p><span class="iconfont icon-icon-time"></span>时间</p>
                            <p><span class="iconfont icon-icon-hot"></span>热门</p>
                        </div> -->
                        <ul class="list-tabs active" id='content'>
                            
                        </ul>
                        <ul class="list-tabs">
                            
                        </ul>
                        <ul class="list-tabs">
                            
                        </ul>
                    </div>
<!--                     <aside class="main-side">
                        <h2>优秀研究员</h2>
                         <ul class="side-list">
                            <li>

                                <a href="detail_curriculum-researcher.html">
                                <img src="{{$static_path}}/static/images/investors/ava.png">
                                <div class="side-list-font">
                                    <h3>沈丽</h3>
                                    <p>资深理财顾问</p>
                                </div>
                            </a>
                            </li>
                            <li>

                                <a href="detail_curriculum-researcher.html">
                                <img src="{{$static_path}}/static/images/investors/ava.png">
                                <div class="side-list-font">
                                    <h3>沈丽</h3>
                                    <p>资深理财顾问</p>
                                </div>
                            </a>
                            </li>
                            <li>

                                <a href="detail_curriculum-researcher.html">
                                <img src="{{$static_path}}/static/images/investors/ava.png">
                                <div class="side-list-font">
                                    <h3>沈丽</h3>
                                    <p>资深理财顾问</p>
                                </div>
                            </a>
                            </li>
                        </ul>
                        <a href="list_curriculum-researcher.html" class="more">查看更多</a>
                    </aside> -->
                </div>
            </div>

        </div>
    </div>
    <!--放一个id为footer的div,把footer.html加载到这块-->
    {{include file="footer.tpl"}}
    <!-- 底部部分 -->
</body>

<!-- 加载头尾 -->

<script src="{{$static_path}}/static/common/js/load.js"></script>
<script src="{{$static_path}}/static/common/js/upload2.js"></script>
<script src="{{$static_path}}/static/common/js/swiper_2.7.js"></script>
<script src="{{$static_path}}/static/js2/list_zj_space.js"></script>
<script>
/*取出留言数据*/
    $.ajax({
        type: 'POST',
        dataType: 'json',
        url: "/dynamic/dynamic-data-info-list?id=3&pageSize=5",
        // data: data,
        success: function(data){
            // console.log(data.data.list);
            if(data.code == 0){
                var list = data.data.list;
                for(var i=0; i<list.length; i++){
                    // console.log(list[i].contents[2].value);
                    // if(list[i].contents[0].name == 'pic'){
                    //     console.log(list[i].contents[0].name, 'ddd');
                    // }

                    if(list[i].member.nickname != ''){
                        var mname = list[i].member.nickname;
                    }else{
                        var mname = list[i].member.loginname;
                    }
                    // if(mname.length > 5){
                    //     mname = mname.substr(0, 5) + '...';
                    // }

                    if(list[i].member.headimgurl != ''){
                        if(list[i].member.sex == 1){
                            var headimgurl = '{{$static_path}}/static/images/login/head_portrait2.png';
                        }else{
                            var headimgurl = '{{$static_path}}/static/images/login/head_portrait1.png';
                        }
                    }else{
                        var headimgurl = '{{$static_path}}/static/images/login/head_portrait2.png';
                    }

                    var images = '';
                    if(list[i].contents[1].value != ''){
                        for(var m=0; m<list[i].contents[1].value.length; m++){
                            images += '<li><img src="' + list[i].contents[1].value[m] +'" alt="comment-img"></li>'
                        }
                    }
                    // console.log(images)
                    // var html = `<div class="list-tabs-item clearfix">
                    //                 <div class="list-tabs-info">
                    //                     <img src="` + headimgurl + `" class="user-img">
                    //                     <h3>` + mname + `</h3>
                    //                 </div>
                    //                 <div class="list-tabs-font clearfix">
                    //                     <span class="message-time">` + list[i].add_time + `</span>

                    //                     <h4>` + list[i].contents[0].value + `</h4>
                    //                     <div class="font-content">
                    //                         ` + list[i].contents[1].value + `
                    //                         <ul class="img-container clearfix">` + images + `</ul>
                    //                     </div>
                    //                 </div>
                    //             </div>`;
                    var html = `<li>
                                <img src="` + headimgurl + `" class="user-img">
                                <div class="list-tabs-font clearfix" style="width: 838px">
                                    <span class="comment-time">` + list[i].add_time + `</span>
                                    <h3>` + mname + `</h3>
                                    <p class="comment">` + list[i].contents[0].value + `</p>
                                    <ul class="comment-img-container">` + images + `</ul>
                                    <!--<p class="comment-footer"><span class="iconfont icon-good"> 赞(210)</span>
                                        <span class="iconfont icon-groupcopy6"> 评论(210)</span>
                                    </p>-->
                                    <!-- 回复 -->
                                    <div class="comment-reply hidden">
                                        <div class="reply-group">
                                            <textarea class="reply" placeholder="我也说一句..."></textarea>
                                            <button type="submit" class="submit-reply">评 论</button>
                                            <span class="reply-error"></span>
                                        </div>
                                        <ul class="reply-list">
                                            <li>
                                                <img src="{{$static_path}}/static/images/investors/ava.png" alt="user-img">
                                                <div class="rely-list-item-font">
                                                    <p class="font-right"><span class="iconfont icon-good"></span>
                                                        <!-- <span class="reply-btn">回复</span> -->
                                                    </p>
                                                    <h4>马玉莲</h4>
                                                    <p class="reply-content">很有感觉
                                                        很棒！！！“优秀投顾”栏目为您提供了功能齐全，功能齐全您可以“优秀投顾”栏目为您提供了功能齐全，功能齐全您可以</p>
                                                    <p class="reply-time">15:40</p>
                                                </div>
                                            </li>
                                            <li>
                                                <img src="{{$static_path}}/static/images/investors/ava.png" alt="user-img">
                                                <div class="rely-list-item-font">
                                                    <p class="font-right"><span class="iconfont icon-good"></span>
                                                        <!-- <span class="reply-btn">回复</span> -->
                                                    </p>
                                                    <h4>马玉莲</h4>
                                                    <p class="reply-content">很有感觉
                                                        很棒！！！“优秀投顾”栏目为您提供了功能齐全，功能齐全您可以“优秀投顾”栏目为您提供了功能齐全，功能齐全您可以</p>
                                                    <p class="reply-time">15:40</p>
                                                </div>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </li>`;
                    $('#content').append(html);
                }
            }
        },
        error: function(){
      
        }
    })
</script>

</html>